from motor.motor_asyncio import AsyncIOMotorClient

_client: AsyncIOMotorClient|None

def init_mongo():
    global _client
    _client = AsyncIOMotorClient("mongodb://localhost:27017")
    
async def get_mongo() ->AsyncIOMotorClient:
    return _client